package DataClass;

import java.sql.Timestamp;

/**
 * CREATE TABLE Student (
 *     SNo CHAR(10) PRIMARY KEY,
 *     SCName VARCHAR(32) NOT NULL,
 *     SEName VARCHAR(32),
 *     SSex CHAR(2),
 *     SType VARCHAR(12),
 *     SNation VARCHAR(16),
 *     SEnter INT,
 *     STNo CHAR(10),
 *     SATNo CHAR(10),
 *     SBir TIMESTAMP,
 *     SEmail VARCHAR(32),
 *     STele VARCHAR(16),
 *     SRemark VARCHAR(200),
 *     SPic BYTEA,
 *     SAccount VARCHAR(32),
 *     SPassword VARCHAR(32)
 * );
 */
public class Student {
    private String SNo;

    private String SCname;

    private String SEName;

    private String SSex;

    private String SType;

    private String SNation;

    private Integer SEnter;

    private String STNo;

    private String SATNo;

    private Timestamp SBir;

    private String SEmail;

    private String STele;

    private String SRemark;

    private Byte SPic;

    private String SAccount;

    private String SPassword;

    //========================================
    private Timestamp SIn;

    private Timestamp SOut;

    private String photoPath;


    public Student(String SNo,String SCname,String SType,Integer SEnter,String STNo,String SATNo,String SRemark,Timestamp SIn,Timestamp SOut,String SPassword) {
        this.SIn = SIn;
        this.SCname=SCname;
        this.SNo = SNo;
        this.SType = SType;
        this.SEnter = SEnter;
        this.STNo = STNo;
        this.SATNo = SATNo;
        this.SRemark = SRemark;
        this.SOut = SOut;
        this.SPassword = SPassword;
    }

    public Student(String SNo,String SCname,String SSex,String SType,String SNation,String STNo,String SATNo,Integer SEnter,String photoPath){
        this.SNo = SNo;
        this.SCname = SCname;
        this.SType = SType;
        this.SEnter = SEnter;
        this.STNo = STNo;
        this.SATNo = SATNo;
        this.SRemark = SNation;
        this.SOut = SOut;

    }

    public Student(){

    }

    public String getSNo() {
        return SNo;
    }
    public String getSCName() {
        return SCname;
    }
    public String getSEName() {
        return SEName;
    }
    public String getSSex(){
        return this.SSex;
    }
    public String getSType() {
        return SType;
    }
    public String getSNation() {
        return SNation;
    }
    public Integer getSEnter() {
        return SEnter;
    }
    public String getSTNo() {
        return STNo;
    }
    public String getSATNo() {
        return SATNo;
    }
    public String getSPassword() {
        return SPassword;
    }
    public String getSRemark() {
        return SRemark;
    }
    public Timestamp getSOut() {
        return SOut;
    }
    public Timestamp getSBir() {
        return SBir;
    }
    public String getSEmail() {
        return SEmail;
    }
    public String getSTele() {
        return STele;
    }
    public String getPhotoPath(){
        return photoPath;
    }
    public Timestamp getSIn() {
        return this.SIn;
    }
    public String getSAccount(){
        return this.SAccount;
    }

    // Setter

    public void setSNo(String SNo) {
        this.SNo = SNo;
    }
    public void setSCName(String SCname) {
        this.SCname = SCname;
    }
    public void setSEName(String SEName) {
        this.SEName = SEName;
    }
    public void setSCname(String SCname) {
        this.SCname = SCname;
    }

    public void setSSex(String SSex) {
        this.SSex = SSex;
    }

    public void setSType(String SType) {
        this.SType = SType;
    }

    public void setSNation(String SNation) {
        this.SNation = SNation;
    }

    public void setSEnter(Integer SEnter) {
        this.SEnter = SEnter;
    }

    public void setSTNo(String STNo) {
        this.STNo = STNo;
    }

    public void setSATNo(String SATNo) {
        this.SATNo = SATNo;
    }

    public void setSBir(Timestamp SBir) {
        this.SBir = SBir;
    }

    public void setSEmail(String SEmail) {
        this.SEmail = SEmail;
    }

    public void setSTele(String STele) {
        this.STele = STele;
    }

    public void setSRemark(String SRemark) {
        this.SRemark = SRemark;
    }

    public void setSPic(Byte SPic) {
        this.SPic = SPic;
    }

    public void setSAccount(String SAccount) {
        this.SAccount = SAccount;
    }

    public void setSPassword(String SPassword) {
        this.SPassword = SPassword;
    }

    public void setSIn(Timestamp SIn) {
        this.SIn = SIn;
    }

    public void setSOut(Timestamp SOut) {
        this.SOut = SOut;
    }

    public void setPhotoPath(String photoPath) {
        this.photoPath = photoPath;
    }
}
